package com.own.business.system.user.controller.manage.doc;

import com.own.component.springdoc.DefaultSecuritySpringDocConfiguration;
import com.own.constant.ConstantBeanSuffix;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

import javax.annotation.Resource;

/**
 * ManageSystemUserApiDocConfiguration
 *
 * @author chenxueli
 * @date 2023-12-05 19:33:16
 */
@SpringBootConfiguration
public class ManageSystemUserApiDocConfiguration {

    @Resource
    private DefaultSecuritySpringDocConfiguration defaultSecuritySpringDocConfiguration;

    @Bean
    public GroupedOpenApi manageSystemUserApiDoc() {
        return defaultSecuritySpringDocConfiguration.create(
                "系统用户管理" + ConstantBeanSuffix.MANAGE_CLIENT,
                this.getClass().getPackageName(),
                "com.own.business.system.user.controller.manage"
        );
    }

}
